home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / SimpleMenP.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  102 lines

  1. /*
  2.  * $Xorg: SimpleMenP.h,v 1.4 2001/02/09 02:03:45 xorgcvs Exp $
  3.  *
  4. Copyright 1989, 1994, 1998  The Open Group
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation.
  11.  
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  18. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  
  22. Except as contained in this notice, the name of The Open Group shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from The Open Group.
  25.  *
  26.  */
  27. /* $XFree86: xc/lib/Xaw/SimpleMenP.h,v 1.12 2001/01/17 19:42:30 dawes Exp $ */
  28.  
  29. /*
  30.  * SimpleMenuP.h - Private Header file for SimpleMenu widget.
  31.  *
  32.  * Date:    April 3, 1989
  33.  *
  34.  * By:      Chris D. Peterson
  35.  *          MIT X Consortium
  36.  *          kit@expo.lcs.mit.edu
  37.  */
  38.  
  39. #ifndef _SimpleMenuP_h
  40. #define _SimpleMenuP_h
  41.  
  42. #include <X11/Xaw/SimpleMenu.h>
  43. #include <X11/Xaw/SmeP.h>
  44. #include <X11/ShellP.h>
  45. #include <X11/Xaw/XawInit.h>
  46.  
  47. typedef struct {
  48.     XtPointer extension;        /* For future needs */
  49. } SimpleMenuClassPart;
  50.  
  51. typedef struct _SimpleMenuClassRec {
  52.     CoreClassPart        core_class;
  53.     CompositeClassPart        composite_class;
  54.     ShellClassPart        shell_class;
  55.     OverrideShellClassPart  override_shell_class;
  56.     SimpleMenuClassPart        simpleMenu_class;
  57. } SimpleMenuClassRec;
  58.  
  59. extern SimpleMenuClassRec simpleMenuClassRec;
  60.  
  61. typedef struct _SimpleMenuPart {
  62.   /* resources */
  63.     String    label_string;    /* The string for the label or NULL */
  64.     SmeObject    label;        /* If label_string is non-NULL then this is
  65.                    the label widget */
  66.     WidgetClass    label_class;    /* Widget Class of the menu label object */
  67.     Dimension    top_margin;    /* Top and bottom margins */
  68.     Dimension    bottom_margin;
  69.     Dimension    row_height;    /* height of each row (menu entry) */
  70.     Cursor    cursor;        /* The menu's cursor */
  71.     SmeObject    popup_entry;    /* The entry to position the cursor on for
  72.                    when using XawPositionSimpleMenu */
  73.     Boolean    menu_on_screen;    /* Force the menus to be fully on the screen*/
  74.     int        backing_store;    /* What type of backing store to use */
  75.  
  76.     /* private */
  77.     Boolean    recursive_set_values; /* contain a possible infinite loop */
  78.     Boolean    menu_width;    /* If true then force width to remain 
  79.                    core.width */
  80.     Boolean    menu_height;    /* Just like menu_width, but for height */
  81.     SmeObject    entry_set;    /* The entry that is currently set or
  82.                    highlighted */
  83. #ifndef OLDXAW
  84.     Dimension    left_margin;
  85.     Dimension    right_margin;
  86.     XawDisplayList *display_list;
  87.     Widget    sub_menu;
  88.     unsigned    char state;
  89.     XtPointer pad[4];    /* for future use and keep binary compatability */
  90. #endif
  91. } SimpleMenuPart;
  92.  
  93. typedef struct _SimpleMenuRec {
  94.     CorePart        core;
  95.     CompositePart     composite;
  96.     ShellPart        shell;
  97.     OverrideShellPart    override;
  98.     SimpleMenuPart    simple_menu;
  99. } SimpleMenuRec;
  100.  
  101. #endif /* _SimpleMenuP_h */
  102.